package com.cloud.drore.eboss.supplier.service;

import com.cloud.drore.eboos.common.base.ResultMessage;
import com.cloud.drore.eboos.common.entity.supplier.TicketStock;
import com.cloud.drore.eboos.exception.BusinessException;
import com.cloud.drore.eboss.supplier.entity.CombinationProductStock;
import com.cloud.drore.eboss.supplier.entity.ProductStock;

import java.util.Date;
import java.util.List;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: <br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/3/12 15:02 <br>
 * @Author: <a href="575842778@qq.com">郑永涛</a>
 */
public interface IProductStockService {

    int updateProductStockByParam(ProductStock productStock);

    void saveProductStock() throws BusinessException;

    ProductStock findProductStockByParam(ProductStock productStock);

    ResultMessage saveTicketProductStocks(List<TicketStock> stocks, Long commonProductId, String productNum) throws BusinessException;

    ResultMessage saveTicketProductStocksDealer(List<TicketStock> stocks, Long commonProductId, String productNum) throws BusinessException;

    ResultMessage saveCombinationProductStocks(List<CombinationProductStock> stocks, Long commonProductId, String productNum) throws BusinessException;

    ResultMessage saveUnlimitedProductStocks(Long commonProductId, String productNum, Date startTime, Date endTime);
}